import { defineStore } from "pinia";
import type { UserInfo } from "@/types/user"

export const userStore = defineStore('userStore', {
  state: () => ({
    userInfo: <UserInfo>{}
  }),
  getters: {},
  actions: {
    onGetUserInfo() {
      this.userInfo = uni.getStorageSync('userInfo')
    }
  },
})